import 'babel-polyfill'
import Vue from 'vue'
import VueAMap from 'vue-amap';
import 'normalize.css/normalize.css'// A modern alternative to CSS resets

import ElementUI from 'element-ui'
import MintUI from 'mint-ui'
import 'element-ui/lib/theme-chalk/index.css'
import locale from 'element-ui/lib/locale/lang/en' // lang i18n

import '@/styles/index.scss' // global css
import './assets/css/indexicon.css'
import './assets/css/font-awesome.css'
import 'mint-ui/lib/style.css'
import './assets/css/globle.css'
import i18n from './lang' // Internationalization
import App from './App'
import router from './router'
import store from './store'

import '@/icons' // icon
import '@/permission' // permission control

import "./assets/icon/iconfont.css";

Vue.use(ElementUI, MintUI, { locale },
  {
    i18n: (key, value) => i18n.t(key, value)
  })
Vue.use(VueAMap)
VueAMap.initAMapApiLoader({
  key: '84827452ad3e630b21bb44fb14adc597',
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
  // 默认高德 sdk 版本为 1.4.4
  v: '1.4.4'
});
Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  i18n,
  components: { App }
})
